import { Button } from 'antd';

export const columns = [
    {
        title: '序号',
        dataIndex: 'serial',
        key: 'serial',
        align: 'center',
        width: 50,
        ellipsis: true,
    },
    {
        title: '人脸id',
        dataIndex: 'id',
        key: 'id',
        align: 'center',
        width: 80,
        ellipsis: true,
        render: (text) => {
            return (
                <div>
                    <span style={{ color: '#4096ff' }}>{text}</span>
                </div>
            )
        },
    },
    {
        title: '用户名',
        dataIndex: 'name',
        key: 'name',
        align: 'center',
        width: 200,
        ellipsis: true,
    },

    {
        title: '所属单位',
        dataIndex: 'unit',
        key: 'unit',
        align: 'center',
        width: 120,
        ellipsis: true,
    },
    {
        title: '所属部门',
        dataIndex: 'department',
        key: 'department',
        width: 200,
        align: 'center',
        ellipsis: true,
    },

    {
        title: '照片',
        dataIndex: 'facePic',
        key: 'facePic',
        width: 200,
        align: 'center',
        ellipsis: true,
        render: (taskState) => {
            return (
                <Button type="primary" danger >删除</Button>
            )
        },
    },
];